﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class Info_RestInfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        MultiView1.ActiveViewIndex = 0;
        if (!IsPostBack)
        {
            SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["Connection"]);
            con.Open();
            int id = Convert.ToInt32(Request["Employeeid"].ToString());
            string sql = "select * from Employee where Employeeid="+id+" ";
            SqlDataAdapter da = new SqlDataAdapter(sql,con);
            DataSet ds = new DataSet();
            da.Fill(ds);
            Repeater1.DataSource = ds;
            Repeater1.DataBind();
            Repeater2.DataSource = ds;
            Repeater2.DataBind();
            con.Close();
        }
    }
    protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
    {
        switch (Menu1.SelectedValue)
        {
            case "0":
                {
                    MultiView1.ActiveViewIndex = 0;
                    break;
                }
            case "1":
                {
                    MultiView1.ActiveViewIndex = 1;
                    break;
                }
            default:
                break;

        }
    }
}
